package com.hoshiicloud.saleorder.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 协商历史(Consultations)consultations
 *
 * @author makqryejava
 * @since 2019-08-22 11:00:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel("退款协商历史表实体")
public class Consultations extends Model<Consultations> {

    @ApiModelProperty("协商历史ID")
    private Long id;

    @ApiModelProperty("订单子ID")
    private Long subId;

    @ApiModelProperty("退款单ID")
    private Long refundId;

    @ApiModelProperty("退款状态")
    private Integer status;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("图片1")
    private String image1;

    @ApiModelProperty("图片2")
    private String image2;

    @ApiModelProperty("图片3")
    private String image3;

    @ApiModelProperty("图片4")
    private String image4;

    @ApiModelProperty("退款金额")
    private BigDecimal refundAmount;

    @ApiModelProperty("退款类型 1-售中 2-售后")
    private Integer refundType;

    @ApiModelProperty("退还币数")
    private Long refundCoines;

    @ApiModelProperty("服务类型 1-仅退款 2-退货退款")
    private Integer serviceType;

    @ApiModelProperty("买家ID,取member表Id")
    private Long userId;

    @ApiModelProperty("退款原因")
    private String reasons;

    @ApiModelProperty("建立时间")
    private LocalDateTime createdTime;

    @ApiModelProperty("修改时间")
    private LocalDateTime updatedTime;

    @ApiModelProperty("建立人")
    private String createdBy;

    @ApiModelProperty("修改人")
    private String updatedBy;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
